// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import VueAxios from 'vue-axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { Button } from 'vant';

import Vant from 'vant';
import 'vant/lib/index.css';
import { Cell, CellGroup, Radio } from 'vant';
Vue.use(Vant);
import 'vant/lib/index.css';


Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(Button);

Vue.use(VueAxios, axios);

Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Radio);


Vue.config.productionTip = false
Vue.prototype.$axios = axios
// step2：使每次请求都会带一个 /api 前缀
axios.defaults.baseURL = '/api'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
